package com.caigou.mapper.cms;



import com.caigou.bean.cms.entity.GovProListExpert;
import com.caigou.bean.cms.param.GovProListExpertParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GovProListExpertMapper {
    GovProListExpert selectByPrimaryKey(Integer id);
    int deleteByPrimaryKey(Integer id);
    List<GovProListExpert> listExpert();
    int insertSelective(GovProListExpert expert);
    int updateExpert(GovProListExpert expert);

    Integer selectMaxRank();
    int updateRankForDelete(@Param("rank") Integer rank);
    GovProListExpert getByRank(Integer rank);
    int updateRankForFront(GovProListExpertParam param);
    int updateRankForBack(GovProListExpertParam param);

}
